﻿using Harmontronics.IService;
using Harmontronics.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Harmontronics.Service
{
    public class UnitOfWork : IUnitOfWork
    {
        private readonly HcDbContext _hcDbContext;

        public UnitOfWork(HcDbContext hcDbContext)
        {
            _hcDbContext = hcDbContext;
        }
        public int Commit()
        {
            return _hcDbContext.SaveChanges();
        }
    }
}
